package selef.xiafan.service;

import selef.xiafan.entity.system.SysRole;
import selef.xiafan.entity.user.User;
import selef.xiafan.query.SysRoleQ;
import selef.xiafan.util.result.PageResult;

import java.util.List;
import java.util.Set;

public interface ISysRoleService {
    Set<String> getloginRoles(User user);

    List<SysRole> selectedUserRoles(User user);

    PageResult<SysRole> getAll(SysRoleQ sysRoleQ);

    SysRole updateRoleStatue(SysRole requestSysRole);

    void addorupdate(SysRole sysRole);

    List<SysRole> getAll();

    int deleteRole(SysRole role);
}
